<script setup>
import {windowClose, windowCreate} from '@/util/myUtils'

const handleNewWin1 = () => {
    windowCreate({
        title: '管理页面',
        route: '/',
        width: 1000,
        height: 750,
        backgroundColor: '#f9f9f9',
        resizable: false,
        modal: true,
        maximize: true,
    })
}

const handleNewWin2 = () => {
    windowCreate({
        title: '关于页面',
        route: '/about?id=13',
        width: 750,
        height: 450,
        backgroundColor: '#f90',
        resizable: false,
    })
}
</script>

<template>
    <p class="mt-10"><a-button type="primary" @click="handleNewWin1">新窗口1</a-button></p>
    <p class="mt-10"><a-button type="primary" @click="handleNewWin2">新窗口2</a-button></p>
</template>
<route lang="yaml">
meta:
  title: Home1页面
  icon: left-square-filled
</route>
<style scoped>

</style>
